package com.neugh.controller;


import com.neugh.service.JudgeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
@Controller
public class JudgeController {
    @Autowired
    JudgeService judgeService;

    @RequestMapping("comm")
    public String comm(String judgeContent, Integer commId){
        boolean n = judgeService.insertJudge(judgeContent,commId);
        if(n){
            return "redirect:dongtaiTwo?commId="+commId;
        }
        return "";
    }

}

